<?php
/**
 * Created by PhpStorm.
 * @author WYZ <wyz@jungo.com.cn>
 * @copyright 深圳市俊网网络有限公司
 */

namespace Selibra\MQ;


use Selibra\Di\DI;
use Swoole\Process;

class ConsumerCollector
{

    /**
     * @var array
     */
    protected static array $consumers = [];


    /**
     * @param $class
     * @param $method
     * @param $tags
     */
    public static function push($class, $method, $tags)
    {
        array_push(self::$consumers, [
            'class' => $class,
            'method' => $method,
            'tags' => $tags,
        ]);
    }


    /**
     * @return array
     */
    public static function getConsumers()
    {
        return self::$consumers;
    }

}